const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  //配置跨域
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:8989/',
        // ws: true,
        changeOrigin: true,
        pathRewrite:{
          '^/api':''
        }
      },
      '/foo': {
        target: 'http://www.baidu.com',
      }
    }
  }
})
